/* 班次管理样式
------------------------------- */

// 基础样式
.attendance-shift {
  .form-section {
    margin-bottom: 24px;

    .section-title {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 16px;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--el-border-color-light);
      color: var(--el-text-color-primary);
      font-size: 15px;
      font-weight: 600;
      position: relative;

      i {
        color: var(--el-color-primary);
        font-size: 16px;
      }

      .tooltip-icon {
        color: var(--el-text-color-placeholder);
        font-size: 14px;
        //margin-left: auto;
        cursor: help;
      }

      .section-switch {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;

        .switch-label {
          font-size: 13px;
          color: var(--el-text-color-regular);
        }
      }
    }
  }

  // 颜色选择器样式
  .color-picker-container {
    display: flex;
    align-items: center;
    gap: 12px;

    .color-picker-main {
      flex-shrink: 0;
    }

    .color-preview {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      background: var(--el-fill-color-lighter);
      border: 1px solid var(--el-border-color-light);
      border-radius: 6px;
      flex: 1;

      .color-preview-block {
        width: 20px;
        height: 20px;
        border-radius: 4px;
        border: 1px solid var(--el-border-color);
        flex-shrink: 0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      }

      .color-preview-text {
        font-size: 12px;
        color: var(--el-text-color-regular);
        font-family: 'Courier New', monospace;
        font-weight: 500;
      }
    }
  }

  // 打卡设置表格样式 - 紧凑设计
  .punch-settings-table {
    background: #fafafa;
    border: 1px solid var(--el-border-color-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);

    .punch-table-header {
      display: flex;
      background: #f5f5f5;
      border-bottom: 1px solid var(--el-border-color-light);
      font-weight: 600;
      color: var(--el-text-color-primary);
      font-size: 13px;
    }

    .punch-table-row {
      display: flex;
      border-bottom: 1px solid var(--el-border-color-extra-light);
      background: #ffffff;
      min-height: 36px; // 进一步减少高度
      transition: background-color 0.2s ease;

      &:last-child {
        border-bottom: none;
      }

      &:hover {
        background: #f8f9fa;
      }
    }

    .header-col,
    .row-col {
      padding: 4px 6px; // 进一步减少内边距
      display: flex;
      align-items: center;
      position: relative;
    }

    .col-type {
      width: 50px; // 进一步减少宽度
      justify-content: center;
      flex-shrink: 0;
    }

    .col-worktime {
      flex: 1;
      min-width: 120px; // 进一步减少最小宽度
    }

    .col-punchtime {
      flex: 2; // 减少弹性比例
      min-width: 280px; // 减少最小宽度
    }

    .type-label {
      display: flex;
      align-items: center;
      gap: 2px; // 进一步减少间距
      font-size: 10px; // 进一步减小字体
      font-weight: 600;
      color: var(--el-text-color-primary);
      padding: 3px 4px; // 减少内边距
      border-radius: 3px;
      background: var(--el-fill-color-lighter);
      border: 1px solid var(--el-border-color-light);

      .type-icon {
        font-size: 10px; // 进一步减小图标

        &.work-start {
          color: var(--el-color-success);
        }

        &.work-end {
          color: var(--el-color-warning);
        }
      }
    }

    .worktime-group {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-wrap: nowrap;
    }

    .punchtime-range {
      display: flex;
      align-items: center;
      gap: 3px; // 进一步减少间距
      flex-wrap: nowrap; // 强制一行显示
      justify-content: flex-start;
    }

    .time-group {
      display: flex;
      align-items: center;
      gap: 1px; // 进一步减少内部间距
      flex-shrink: 0; // 防止压缩
    }

    .day-select-compact {
      width: 88px; // 进一步缩小

      :deep(.el-input__inner) {
        font-size: 10px;
        padding: 0 1px; // 减少左右内边距
        text-align: center;
        border: none; // 移除边框
        background: transparent; // 透明背景
      }

      :deep(.el-input__wrapper) {
        padding: 0; // 移除包装器内边距
        box-shadow: none; // 移除阴影
        background: transparent;
      }
    }

    .time-picker-compact {
      width: 120px; // 进一步缩小

      :deep(.el-input__inner) {
        font-size: 10px;
        padding: 0 1px; // 减少左右内边距
        text-align: center;
        border: none; // 移除边框
        background: transparent; // 透明背景
      }

      :deep(.el-input__suffix) {
        right: 1px;
        width: 10px; // 固定后缀宽度
      }

      :deep(.el-input__wrapper) {
        padding: 0; // 移除包装器内边距
        box-shadow: none; // 移除阴影
        background: transparent;
      }
    }

    .day-select-mini {
      width: 88px; // 进一步缩小

      :deep(.el-input__inner) {
        font-size: 9px;
        padding: 0 1px;
        text-align: center;
        border: none; // 移除边框
        background: transparent; // 透明背景
      }

      :deep(.el-input__suffix) {
        right: 1px;
        width: 10px; // 固定后缀宽度
      }

      :deep(.el-input__wrapper) {
        padding: 0; // 移除包装器内边距
        box-shadow: none; // 移除阴影
        background: transparent;
      }
    }

    .time-picker-mini {
      width: 120px; // 进一步缩小

      :deep(.el-input__inner) {
        font-size: 9px;
        padding: 0 1px;
        text-align: center;
        border: none; // 移除边框
        background: transparent; // 透明背景
      }

      :deep(.el-input__suffix) {
        right: 1px;
        width: 10px; // 固定后缀宽度
      }

      :deep(.el-input__wrapper) {
        padding: 0; // 移除包装器内边距
        box-shadow: none; // 移除阴影
        background: transparent;
      }
    }

    .range-separator {
      color: var(--el-text-color-placeholder);
      font-weight: 500;
      margin: 0 1px; // 进一步减少间距
      font-size: 10px;
      flex-shrink: 0;
    }

    // 打卡时间区域的表单验证样式优化 - 一行显示优化
    .col-punchtime {

      // 错误提示显示在下方，不影响一行布局
      .punchtime-range {
        position: relative;
        // 移除 flex-wrap，保持一行显示
      }

      .time-group {
        position: relative;

        // 优化错误提示显示
        .inline-form-item {
          :deep(.el-form-item__error) {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            z-index: 10;
            background: rgba(245, 108, 108, 0.9);
            color: white;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 10px;
            white-space: nowrap;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            margin-top: 2px;
          }
        }
      }

      // 右侧时间组错误提示右对齐
      .time-group:last-of-type {
        .inline-form-item {
          :deep(.el-form-item__error) {
            right: 0;
            left: auto;
            text-align: right;
          }
        }
      }
    }

    // 工作时间区域的表单验证样式优化  
    .col-worktime {
      .worktime-group {
        // 保持一行显示
        flex-wrap: nowrap;
      }

      .time-group {
        position: relative;

        .inline-form-item {
          :deep(.el-form-item__error) {
            position: absolute;
            top: 100%;
            left: 0;
            z-index: 10;
            background: rgba(245, 108, 108, 0.9);
            color: white;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 10px;
            white-space: nowrap;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            margin-top: 2px;
          }
        }
      }
    }
  }

  // 响应式优化 - 移动端
  @media (max-width: 768px) {
    .punch-settings-table {
      .punch-table-row {
        min-height: 80px; // 移动端需要更多垂直空间
        flex-direction: column;
        padding: 12px;

        .row-col {
          width: 100%;
          padding: 8px 0;

          &.col-punchtime {
            .punchtime-range {
              flex-direction: column;
              gap: 12px;
              align-items: stretch;

              .time-group {
                width: 100%;
                justify-content: flex-start;

                .inline-form-item {
                  width: 100%;

                  :deep(.el-form-item__error) {
                    position: static;
                    margin-top: 4px;
                    text-align: left;
                    background: transparent;
                    box-shadow: none;
                    padding: 0;
                  }
                }
              }

              .range-separator {
                align-self: center;
                margin: 8px 0;
              }
            }
          }

          &.col-worktime {
            .worktime-group {
              width: 100%;

              .time-group {
                width: 100%;

                .inline-form-item {
                  :deep(.el-form-item__error) {
                    position: static;
                    margin-top: 4px;
                    background: transparent;
                    box-shadow: none;
                    padding: 0;
                  }
                }
              }
            }
          }
        }
      }
    }
  }

  // 违规规则网格样式
  .violation-rules-grid {
    background: var(--el-fill-color-lighter);
    border: 1px solid var(--el-border-color-light);
    border-radius: 6px;
    padding: 16px;

    .rule-item {
      display: flex;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid var(--el-border-color-extra-light);

      &:last-child {
        border-bottom: none;
      }

      &.rule-disabled {
        opacity: 0.6;

        .rule-text,
        .rule-unit,
        .rule-desc {
          color: var(--el-text-color-disabled) !important;
        }
      }

      .rule-label {
        width: 200px;
        flex-shrink: 0;

        .rule-text {
          font-size: 13px;
          color: var(--el-text-color-regular);
        }
      }

      .rule-input-group {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;

        .rule-input {
          width: 120px;
        }

        .rule-unit {
          font-size: 12px;
          color: var(--el-text-color-placeholder);
        }

        .rule-desc {
          font-size: 13px;
          color: var(--el-text-color-regular);
        }
      }

      .rule-switch-group {
        width: 60px;
        display: flex;
        justify-content: center;
      }
    }
  }

  // 工时设置行样式
  .worktime-settings-row {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 16px;
    background: var(--el-fill-color-lighter);
    border: 1px solid var(--el-border-color-light);
    border-radius: 6px;

    .worktime-item {
      display: flex;
      align-items: center;
      gap: 12px;

      .worktime-label span {
        font-size: 13px;
        color: var(--el-text-color-regular);
        white-space: nowrap;
      }

      .worktime-input {
        width: 120px;
      }
    }
  }

  // 补贴规则设置样式
  .subsidy-settings-container {
    margin-top: 16px;
    padding: 16px;
    background: var(--el-fill-color-lighter);
    border: 1px solid var(--el-border-color-light);
    border-radius: 8px;

    .subsidy-setting-item {
      border: 1px solid var(--el-border-color-light);
      border-radius: 8px;
      padding: 12px 16px;
      background-color: var(--el-bg-color);
      transition: all 0.3s ease;

      &:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transform: translateY(-1px);
      }

      .setting-header {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .setting-label {
          display: flex;
          align-items: center;
          gap: 6px;
          font-weight: 600;
          color: var(--el-text-color-primary);
          font-size: 14px;

          .setting-icon {
            color: var(--el-color-primary);
            font-size: 16px;
          }
        }

        .setting-switch {
          display: flex;
          align-items: center;
        }
      }
    }
  }

  // 规则选择容器样式
  .rule-selection-container {
    margin-top: 16px;
    padding: 20px;
    background: var(--el-fill-color-lighter);
    border: 1px solid var(--el-border-color-light);
    border-radius: 8px;

    .rule-selection-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--el-border-color-light);

      .selection-info {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--el-text-color-primary);
        font-size: 14px;

        .el-icon {
          color: var(--el-color-info);
          font-size: 16px;
        }
      }

      .selection-actions {
        display: flex;
        gap: 8px;
      }
    }

    // 规则网格布局
    .rules-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 16px;
      min-height: 200px;

      .empty-rules {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 200px;
      }
    }

    // 规则卡片样式
    .rule-card {
      background: var(--el-bg-color);
      border: 2px solid var(--el-border-color-light);
      border-radius: 8px;
      padding: 16px;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;

      &:hover {
        border-color: var(--el-color-primary);
        box-shadow: 0 4px 16px rgba(64, 158, 255, 0.15);
        transform: translateY(-2px);
      }

      &.selected {
        border-color: var(--el-color-success);
        background: var(--el-color-success-light-9);

        &::before {
          content: '';
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          height: 3px;
          background: var(--el-color-success);
          border-radius: 8px 8px 0 0;
        }
      }

      .rule-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 12px;

        .rule-title {
          display: flex;
          align-items: center;
          gap: 8px;
          flex: 1;

          .rule-checkbox {
            flex-shrink: 0;
          }

          .rule-name {
            font-weight: 600;
            color: var(--el-text-color-primary);
            font-size: 15px;
            line-height: 1.4;
            word-break: break-word;
          }
        }

        .rule-type-tag {
          flex-shrink: 0;
          margin-left: 8px;
        }
      }

      .rule-card-content {
        margin-bottom: 12px;

        >div {
          margin-bottom: 8px;

          &:last-child {
            margin-bottom: 0;
          }
        }

        // 金额显示
        .rule-amount {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 8px 12px;
          background: var(--el-fill-color-lighter);
          border-radius: 6px;
          border: 1px solid var(--el-border-color-light);

          .amount-label {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--el-text-color-regular);
            font-size: 13px;

            .el-icon {
              color: var(--el-color-warning);
            }
          }

          .amount-value {
            font-weight: 600;
            color: var(--el-color-success);
            font-size: 14px;

            &.formula-amount {
              color: var(--el-color-primary) !important;
              font-style: italic;
            }
          }
        }

        // 有效期显示
        .rule-period {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 6px 12px;
          background: var(--el-color-warning-light-9);
          border-radius: 6px;
          border: 1px solid var(--el-color-warning-light-5);

          .period-label {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--el-color-warning-dark-2);
            font-size: 13px;

            .el-icon {
              color: var(--el-color-warning);
            }
          }

          .period-value {
            font-size: 13px;
            color: var(--el-color-warning-dark-2);
            font-weight: 500;
          }
        }

        // 备注显示
        .rule-remark {
          padding: 6px 12px;
          background: var(--el-fill-color);
          border-radius: 6px;
          border: 1px solid var(--el-border-color-light);

          .remark-content {
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: help;

            .el-icon {
              color: var(--el-text-color-placeholder);
              flex-shrink: 0;
            }

            .remark-text {
              color: var(--el-text-color-regular);
              font-size: 12px;
              line-height: 1.4;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
              max-width: 200px;
            }
          }
        }
      }

      .rule-card-footer {
        padding-top: 8px;
        border-top: 1px solid var(--el-border-color-extra-light);

        .rule-conditions {
          display: flex;
          align-items: center;
          gap: 6px;
          font-size: 12px;

          .conditions-text {
            color: var(--el-text-color-placeholder);
          }
        }
      }
    }

    // 选择总结
    .selection-summary {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 20px;
      padding: 12px 16px;
      background: var(--el-color-success-light-9);
      border: 1px solid var(--el-color-success);
      border-radius: 6px;

      .summary-info {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--el-color-success-dark-2);
        font-weight: 500;
      }
    }
  }
}

// 暗黑模式适配
[data-theme='dark'] {
  .attendance-shift {
    .color-preview {
      background: var(--next-color-primary) !important;
      border-color: var(--next-border-color) !important;

      .color-preview-text {
        color: var(--next-text-color-regular) !important;
      }
    }

    .punch-settings-table {
      background: var(--next-color-primary) !important;
      border-color: var(--next-border-color) !important;

      .punch-table-header {
        background: var(--next-color-hover) !important;
        border-bottom-color: var(--next-border-color) !important;
        color: var(--next-text-color-regular) !important;
      }

      .punch-table-row {
        background: var(--next-color-disabled) !important;
        border-bottom-color: var(--next-border-color) !important;

        &:hover {
          background: var(--next-color-hover) !important;
        }
      }

      .type-label {
        color: var(--next-color-bar) !important;
      }

      .range-separator {
        color: var(--next-text-color-placeholder) !important;
      }
    }

    .violation-rules-grid {
      background: var(--next-color-primary) !important;
      border-color: var(--next-border-color) !important;

      .rule-item {
        border-bottom-color: var(--next-border-color) !important;

        .rule-text,
        .rule-desc {
          color: var(--next-text-color-regular) !important;
        }

        .rule-unit {
          color: var(--next-text-color-placeholder) !important;
        }
      }
    }

    .worktime-settings-row {
      background: var(--next-color-primary) !important;
      border-color: var(--next-border-color) !important;

      .worktime-label span {
        color: var(--next-text-color-regular) !important;
      }
    }

    .subsidy-settings-container,
    .rule-selection-container {
      background: var(--next-color-primary) !important;
      border-color: var(--next-border-color) !important;

      .subsidy-setting-item,
      .rule-card {
        background: var(--next-color-disabled) !important;
        border-color: var(--next-border-color) !important;

        &:hover {
          background: var(--next-color-hover) !important;
        }
      }

      .rule-selection-header {
        border-bottom-color: var(--next-border-color) !important;

        .selection-info {
          color: var(--next-color-bar) !important;
        }

        .selection-actions {
          .el-button {
            &.el-button--primary.is-plain {
              background: var(--next-color-primary) !important;
              border-color: var(--el-color-primary) !important;
              color: var(--el-color-primary) !important;

              &:hover {
                background: var(--next-color-hover) !important;
                border-color: var(--el-color-primary) !important;
                color: var(--el-color-primary) !important;
              }

              &:active {
                background: var(--next-color-disabled) !important;
              }
            }
          }
        }
      }

      .rule-card {
        &.selected {
          background: var(--next-color-hover) !important;
          border-color: var(--el-color-success) !important;
        }

        .rule-name {
          color: var(--next-color-bar) !important;
        }

        .rule-amount {
          background: var(--next-color-hover) !important;
          border-color: var(--next-border-color) !important;

          .amount-label {
            color: var(--next-text-color-regular) !important;
          }
        }

        .rule-period {
          background: var(--next-color-hover) !important;
          border-color: var(--next-border-color) !important;

          .period-label,
          .period-value {
            color: var(--next-text-color-regular) !important;
          }
        }

        .rule-remark {
          background: var(--next-color-hover) !important;
          border-color: var(--next-border-color) !important;

          .remark-content {
            .el-icon {
              color: var(--next-text-color-placeholder) !important;
            }

            .remark-text {
              color: var(--next-text-color-regular) !important;
            }
          }
        }

        .rule-card-footer {
          border-top-color: var(--next-border-color) !important;

          .conditions-text {
            color: var(--next-text-color-placeholder) !important;
          }
        }
      }

      .selection-summary {
        background: var(--next-color-primary) !important;
        border-color: var(--next-border-color) !important;

        .summary-info {
          color: var(--next-text-color-regular) !important;
        }

        .el-button {
          &.el-button--danger.is-plain {
            background: var(--next-color-primary) !important;
            border-color: var(--el-color-danger) !important;
            color: var(--el-color-danger) !important;

            &:hover {
              background: var(--next-color-hover) !important;
              border-color: var(--el-color-danger) !important;
              color: var(--el-color-danger) !important;
            }

            &:active {
              background: var(--next-color-disabled) !important;
            }
          }
        }
      }
    }

    .setting-label {
      color: var(--next-color-bar) !important;
    }
  }
}

// 响应式设计
@media (max-width: 1200px) {
  .attendance-shift {
    .rules-grid {
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .worktime-settings-row {
      flex-direction: column;
      gap: 20px;
      align-items: flex-start;
    }
  }
}

@media (max-width: 992px) {
  .attendance-shift {
    .rule-selection-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;

      .selection-actions {
        width: 100%;
        justify-content: flex-end;
      }
    }

    .rules-grid {
      grid-template-columns: 1fr;
    }

    .selection-summary {
      flex-direction: column;
      gap: 12px;
      align-items: flex-start;

      .el-button {
        align-self: flex-end;
      }
    }

    .punch-settings-table {
      .col-worktime {
        min-width: 100px; // 进一步减少
      }

      .col-punchtime {
        min-width: 240px; // 进一步减少
      }

      .day-select-compact {
        width: 120px; // 更小
      }

      .time-picker-compact {
        width: 120px; // 更小
      }

      .day-select-mini {
        width: 120px; // 更小
      }

      .time-picker-mini {
        width: 120px; // 更小
      }

      // 确保间距更紧凑
      .punchtime-range {
        gap: 2px;
      }

      .time-group {
        gap: 1px;
      }

      .range-separator {
        margin: 0 1px;
        font-size: 9px;
      }
    }
  }
}

@media (max-width: 768px) {
  .attendance-shift {
    .rule-selection-container {
      padding: 16px;
    }

    .rule-card {
      padding: 12px;

      .rule-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;

        .rule-type-tag {
          margin-left: 0;
          align-self: flex-start;
        }
      }

      .rule-amount,
      .rule-period,
      .rule-remark {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;

        .amount-value,
        .period-value {
          align-self: flex-start;
        }
      }

      .remark-text {
        max-width: none;
        white-space: normal;
      }
    }

    .selection-info {
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
      text-align: left;
    }

    .punch-settings-table {

      .punch-table-header,
      .punch-table-row {
        flex-direction: column;
        gap: 8px;
      }

      .col-type,
      .col-worktime,
      .col-punchtime {
        width: 100%;
        min-width: auto;
      }

      .punchtime-range {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
      }

      .time-group {
        width: 100%;
        justify-content: space-between;
      }

      .day-select-compact,
      .time-picker-compact,
      .day-select-mini,
      .time-picker-mini {
        width: 100%;
      }
    }

    .violation-rules-grid {
      .rule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;

        .rule-label {
          width: 100%;
        }

        .rule-input-group {
          width: 100%;
          justify-content: space-between;
        }

        .rule-switch-group {
          width: 100%;
          justify-content: flex-end;
        }
      }
    }

    .worktime-settings-row {
      flex-direction: column;
      gap: 16px;
      align-items: stretch;

      .worktime-item {
        justify-content: space-between;

        .worktime-input {
          width: 150px;
        }
      }
    }
  }
}

@media (max-width: 480px) {
  .attendance-shift {
    .form-section {
      margin-bottom: 20px;

      .section-title {
        font-size: 14px;
        margin-bottom: 12px;

        .section-switch {
          flex-direction: column;
          gap: 4px;

          .switch-label {
            font-size: 12px;
          }
        }
      }
    }

    .color-picker-container {
      flex-direction: column;
      gap: 8px;
      align-items: stretch;
    }

    .punch-settings-table {

      .header-col,
      .row-col {
        padding: 8px;
      }

      .type-label {
        font-size: 12px;
      }

      .time-group {
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
      }
    }

    .rule-card {
      padding: 8px;

      .rule-name {
        font-size: 14px;
      }

      .amount-label,
      .period-label {
        font-size: 12px;
      }
    }
  }
}